{* Smarty *}
{strip}

{* Главная моделей *}
    {if $MAIN_CAR}
    <!-- MODEL -->
    <div class="content">
        <div class="modelrange">
            {foreach $MAIN_CAR as $Key => $Value}
                <!-- {$Value.sys_name} -->
                <div class="model">
                    <div class="name">
                        <a href="/cars/{$Value.sys_name}.html"><img src="/templates/site/img/right_content_detail.jpg" ALT="FIAT Albea" TITLE="FIAT Albea" /></a>{$Value.name}{if $Value.worth}
                        <span>Цена от <strong>{$Value.worth}</strong> руб.</span>{/if}</div>
                    <div class="img">{$Value.image}</div>
                    <div class="more">
                        <a href="/cars/{$Value.sys_name}.html"><img src="/templates/site/img/bg_more.jpg" ALT="Подробнее о модели" TITLE="Подробнее о модели" /></a>
                    </div>
                    <div class="price">{if $Value.complete_sys_name}
                        <a href="/cars/{$Value.sys_name}/{$Value.complete_sys_name}.html"><img src="/templates/site/img/bg_price.jpg" ALT="Комплектации и цены" TITLE="Комплектации и цены" /></a>{/if}
                    </div>
                </div>
            {/foreach}
        </div>
    </div>
    <!-- END MODEL-->

        {else}
    <!-- CONTENT -->
    <div class="content">
        <!-- TOP BLOCK -->
        <div class="top_block">
            <div class="left">{$TOP_IMAGE}</div>
            <div class="right">
                <h2>FIAT {$HEADER}</h2>

                <p>{$TOP_TEXT}</p>
            </div>
            <div class="sub_menu">
                {if $CAR_MENU}
                    <ul>
                        <li class="none"><a href="{$HEADER_HREF}"{if !$PARTS[3]} class="act"{/if}>ПОДРОБНЕЕ О МОДЕЛИ</a>
                        </li>
                        {foreach $CAR_MENU as $key => $value}
                            <li>
                                <a href="{$value.sys_name}"{if $value.is_active} class="act"{/if}>{$value.name|upper}</a>
                            </li>
                        {/foreach}
                    </ul>
                {/if}

                {if $SELECT_LIST_MODEL}
                    <form>
                        <select onChange="self.location.href=this.options[this.selectedIndex].value;">
                            <option value="0">Выберите модель</option>
                            {foreach $SELECT_LIST_MODEL as $Key => $Value}
                                <option value="/cars/{$Value.sys_name}.html">{$Value.name}</option>{/foreach}
                        </select>
                    </form>
                {/if}
            </div>
        </div>
        <!-- END TOP BLOCK-->

        <!-- TEXT BLOCK -->

        <div class="text">
            <div class="left">
                <!-- PRESS -->
                <div class="press">
                {* Обзор *}
                    {if $REVIEW}
                        {if $REVIEW.sections}
                            <ul class="ul_submenu">
                                {foreach $REVIEW.sections as $Key => $Value name=CicleSubmenu}
                                    <li>
                                        <a href="javascript:void(0);" rel="{$Value.sys_name}"{if $smarty.foreach.CicleSubmenu.first} class="active"{/if}>{$Value.name}</a>
                                    </li>
                                {/foreach}
                            </ul>
                            <br clear="all" />

                            <div class="hidediv">
                                {foreach $REVIEW.sections as $Key => $Value name=CicleText}
                                    <div id="{$Value.sys_name}"{if !$smarty.foreach.CicleText.first} style="display:none;"{/if}>{$Value.btext}</div>
                                {/foreach}
                            </div>
                            {else}
                            {$REVIEW.btext}
                        {/if}

                    {* Галерея *}
                        {elseif $GALLERY || $GALLERY_TEXT}
                        <p>{$GALLERY_TEXT}</p>
                        <ul class="gallery-list">
                            {foreach $GALLERY.small as $key => $img_trumb name=var_cicle}
                                <li>
                                    <a href="{$GALLERY.big[{$smarty.foreach.var_cicle.iteration}]}" class="nyroModal" rel="gal">
                                        <img src="/templates/site/img/mask_gallery.png" class="mask_gallery" alt="{$HEADER}" width="120" height="62" border="0" />
                                        <img src="{$img_trumb}" alt="{$HEADER}" width="120" height="62" border="0" /></a>
                                </li>
                            {/foreach}
                        </ul>

                        {elseif $MAIN_TEXT}
                        {$MAIN_TEXT}
                    {/if}

                </div>
                <!-- END PRESS-->

            </div>

            <div class="right">
                {$RIGHT_TEXT}
            </div>
        </div>
        <!-- END TEXT BLOCK -->
    </div>
    <!-- END CONTENT-->

    {/if}
{/strip}